package com.example.smartgreenhouse.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("light_history_status")
public class LightHistoryStatus {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "light_id", fill = FieldFill.INSERT)
    private Long lightId = 3L;

    @TableField(value = "greenhouse_id", fill = FieldFill.INSERT)
    private Long greenhouseId = 1L;
    
    @TableField("is_on")
    private Integer isOn;
    
    @TableField("is_auto")
    private Boolean isAuto;
    
    @TableField(value = "collect_time", fill = FieldFill.INSERT)
    private LocalDateTime collectTime = LocalDateTime.now();
}